package com.example.springboot.service;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.service
 * @Project：springboot
 * @name：CommentService
 * @Date：2025/3/2 16:19
 * @Filename：CommentService
 * @for:
 */


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.domain.po.Account;
import com.example.springboot.domain.po.Comment;
import com.example.springboot.domain.po.User;
import com.github.pagehelper.PageInfo;


import java.util.List;

public interface CommentService extends IService<Comment> {

       Comment add(Comment comment);

       Comment findById(Integer id);

       void delete(Integer id);

       List<Comment> findAll(Integer newsId);

       void setData(Comment comment);

       PageInfo<Comment> findPage(Comment search, Integer pageNum, Integer pageSize);

       List<Comment> findByCondition(Comment search, Account user);


}